<?php

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('test/middle', 'Test/middleTest')->allowCrossDomain();

//Route::get('test/middle', 'Test/middleTest')->middleware(\app\http\middleware\CrossDomain::class);

Route::get('test/es', 'Test/esTest');

// 创建ES索引
Route::get('test/createIndex','Test/createIndex');

// 创建文档
Route::get('test/createDoc','Test/createDoc');

Route::get('test/getDoc','Test/getDoc');

// 搜索数据
Route::get('test/queryDoc','Test/queryDoc');

// 获取索引配置
Route::get('test/indexConfig','Test/getIndexConfig');